package cn.bellychang.decorator.demo02;

/**
 * @author ChangLiang
 * @date 2019/12/3
 */
public class ComponentDecoratorA extends Decorator {

    public ComponentDecoratorA(ConcreteComponent decorated) {
        super(decorated);
    }

    @Override
    public void methodA() {
        super.methodA();
        addedBehavior();
    }

    private void addedBehavior() {
        System.out.println("invoke ConcreteDecoratorA addedBehavior");
    }
}
